package com.example.serviceconfig.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/***
 * @author wangpeng
 * @since 2021-06-17  20:38
 */
@RestController
public class ConfigController {

    @Value("${txt}")
    private String txt;

    @GetMapping("/txt")
    public Mono<String> getTxt(){
        return Mono.just(txt);
    }
}
